﻿<?php 

session_start();
if(isset($_SESSION["admin"])){
	$user=$_SESSION["admin"];
	

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>企业网站管理系统</title>
<link href="templates/met/images/css/reset.css" rel="stylesheet" />
<link href="templates/met/images/css/metinfo.css" rel="stylesheet" />
</head>
<script type="text/javascript" src="../public/js/metinfo-min.js"></script>
<script type="text/javascript" src="templates/met/images/js/cookie.js"></script>
<script type="text/javascript"src="include/metvar.js"></script>
<script type="text/javascript">
$(function(){
	var lefth = $(window).height() - 90 - 1;
	$('#metleft').height(lefth);
	$('#metright').height(lefth);
	$('#main').height(lefth);
	var leftnavh = lefth - 10 - 25 - 40;
	$('#leftnav').height(leftnavh);
});
</script>
<body>
<div id="sitemap"></div>
    <div id="toplang">
        <div class="floatr">
        <!--
			<a href="javascript:sitemp('set/sitemap.htm?lang=cn&admintp=1');" class="sitemapa">后台地图</a>
 -->
 <a href="#" class="sitemapa"></a>
        </div>

        <span class="floatl langtxt">网站语言</span>
        <select name="loginlang" id="loginlang" onchange="changes($(this));">

            <option value="index.htm?lang=cn" selected='selected'>简体中文</option>
            
        </select>
<!--
        <a href="set/lang.htm?langaction=add" target="main" onclick="clickula(ula,2); clicknav(nav,$(this),0)" class='addlang'><span>添加新语言</span></a>
-->
    </div>
    <div  style="display:none;">
<?php 
include_once '../conn/all.php';
?>
</div>
<div id="top"> 
    <div class="floatr">
		<div class="nav">
		    <div class="username">
<span>您好：<?=$user;?> <span style="font-family:arail;">欢迎你!</span></span>
			</div>
            <ul id="topnav">
                <li><a href="#" class="onnav" hidefocus="true">系统配置 </a></li>
	            <li><a href="#" hidefocus="true">产品管理</a></li>
	            <li><a href="#" hidefocus="true">订单管理</a></li>
	            <li><a href="#" hidefocus="true">用户管理</a></li>
            </ul>
			<div id="Problem"></div>
		</div>
    </div>

</div>

<div id="content">
    <div class="floatr" id="metright">
	    <div class="metbox">
        <div class="iframe">
		    <div class="min"><iframe frameborder="0" id="main" name="main" src="sys/sysadmin.php" scrolling="yes"></iframe></div>
		</div>
		<div class="clse"><img src="templates/met/images/botton/hide.gif" onclick="metclse($(this),'templates/met/images/');" alt="点击展开/隐藏侧栏" title="点击展开/隐藏侧栏" /></div>
		</div>
    </div>
    <div class="floatl" id="metleft">
        <div class="fast">
	        <a target="_blank" href="/index.php" title="网站首页">网站首页</a>
			<a href="sys/sysadmin.php" target="main" title="后台首页">后台首页</a>
			<a target="_top" href="control.php?oper=destroy" title="退出" class='tui'>退出</a>
		</div>
	    <div class="nav_list" id="leftnav">
<!--——————————————————————category 1 start————————————————————————————-->
	        <ul>
                <li><a class="on" target="main" id="nav_0" href="sys/sysadmin.php" title="系统信息">系统信息</a></li>
                <li><a href="sys/foot.php" target="main" id="nav_4" title="联系方式">联系方式</a></li>  
                <li><a href="sys/pwd_change.htm" target="main" id="nav_4" title="修改密码">修改密码</a></li>          
		    </ul>
<!--***************************************category 1 end***************************************-->
<!--——————————————————————category 2 start————————————————————————————-->
	     <ul style="display:none;">
                <li><a class="on" target="main" id="nav_0" href="content/product.php" title="产品列表">产品列表</a></li>
                <li><a href="content/product_add.php" target="main" id="nav_4" title="增加产品">增加产品</a></li>          
		    </ul>
<!--***************************************category 2 end***************************************-->
<!--—————————————————————category 3 start————————————————————————————-->
            <ul style="display:none;">
                <li><a class="on" target="main" id="nav_0" href="content/list.php" title="订单列表">订单列表</a></li>
                <li><a href="content/list.php?zt=1" target="main" id="nav_4" title="未发货">未发货订单</a></li> 
                <li><a href="content/list.php?zt=2" target="main" id="nav_4" title="已发货">已发货订单</a></li>  
                 <li><a href="content/list.php?zt=3" target="main" id="nav_4" title="已结算">未返款订单</a></li>
                  <li><a href="content/list.php?zt=8" target="main" id="nav_4" title="已结算">已返款订单</a></li>
                     <li><a href="content/list.php?zt=7" target="main" id="nav_4" title="已结算">已拒收订单</a></li>
                  <li><a href="content/list.php?zt=6" target="main" id="nav_4" title="退货完成">退货完成订单</a></li>
                  <li><a href="content/jiangli.php" target="main" id="nav_4" title="奖励结算">奖励结算</a></li>

		    </ul>
<!--***************************************category 3 end***************************************-->
<!--——————————————————————category 4 start————————————————————————————-->	
	        <ul style="display:none;">
                <li><a class="on" target="main" id="nav_0" href="content/user.php?type=1" title="用户管理">用户列表</a></li>
            <!--    <li><a href="content/user.php?type=2" target="main" id="nav_4" title="商户管理">商户管理</a></li>   -->       
		    </ul>
<!--***************************************category 4 end***************************************-->
		
	    </div>
		<div class="claer"></div>
		<div class="left_footer"> </div>
	</div>
</div>
<script type="text/javascript">
    var lang='cn';
    var imgurl='templates/met/images/';
	var okinfo='操作成功！';
	var loadingimg = "<div id='loading'><img src='"+imgurl+"loading.gif' /></div>";
</script>
<script src="templates/met/images/js/metinfo.js" type="text/javascript"></script>
<script type="text/javascript">
	var langget = $.cookie('langget');
		$.cookie('langget',null);
	if(langget){
		if($('#nav_'+langget).size()<1){
			alert("你没有管理此种语言内容的权限，请联系管理员开通");
			window.history.back();
		}
		if(langget>10 && langget<20)clicknav(nav,lang,1);
		if(langget>19 && langget<25)clicknav(nav,lang,2);
		if(langget>24 && langget<31){
			if(langget!=27)clicknav(nav,lang,4);
		}
		if(langget>30)clicknav(nav,lang,6);
		$("#nav_"+langget).click();
	}
	$('#sitemap').load('set/sitemap.htm?lang=cn&admintp=1&langset=cn');
	$(document).keypress(function(e){  
	var type = e.keyCode||e.which||e.charCode;
		if(type==27){ 			
			sitemp('set/sitemap.htm?lang=cn&admintp=1&langset=cn');  
		}				
	});
</script>
</body>
</html>
<?php
}else{
	echo "<script>window.location.href='login/index.html';</script>";
	
	}

?>